package com.ynet.mbankserviceimplmyself.model;


import com.alibaba.dubbo.config.annotation.Reference;
import com.ynet.user.bean.UserEntity;
import com.ynet.user.service.UserServiceMy;
import org.springframework.stereotype.Component;

/**
 * @author liwq
 * @description
 * @date 2022-01-25 11:14
 */
@Component
public class UserCenterModel {

    @Reference
    private UserServiceMy userServiceMy;

    public String getUserById(Integer id) {
        UserEntity u = userServiceMy.getUserById(id);
        return u.toString();
    }
}
